//
//  YHYAddressCollectionViewCell.m
//  self
//
//  Created by 杨泓晔 on 16/4/7.
//  Copyright © 2016年 LanJue. All rights reserved.
//

#import "YHYAddressCollectionViewCell.h"
@implementation YHYAddressCollectionViewCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self creatView];
    }
    return self;
}
//cell文字
- (void)creatView{
    self.addressL = [UILabel new];
    [self.contentView addSubview:self.addressL];
    [self.addressL mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.left.mas_equalTo(self);
        make.height.width.mas_equalTo(self);
        
    }];
    [_addressL setNumberOfLines:0];
    //   [lblTitle setTextColor:UIColorFromRGB(kColorStringBlack)];
    // [lblTitle setBackgroundColor:[UIColor clearColor]];
    [_addressL setTextAlignment:NSTextAlignmentCenter];
    [self.contentView addSubview:_addressL];
    _addressL.backgroundColor = [UIColor whiteColor];
    _addressL.font = [UIFont fontWithName:@"Arial" size:TEXTCONTENTFONT2 * AUTO_WIDTH];
    _addressL.textColor = TextGrayColor;
    //裁掉边框
    _addressL.layer.masksToBounds = YES;
    //设置半径
    _addressL.layer.cornerRadius = 6 *AUTO_HEIGHT;
    _addressL.layer.borderColor = KH.CGColor;
    _addressL.layer.borderWidth = 0.7 * AUTO_WIDTH;
    _addressL.textAlignment = NSTextAlignmentCenter;

}
@end
